﻿using System;

namespace XuanFe.AppLaunch.ETerm
{
    public class ETermPassenger
    {
        /// <summary>
        /// 旅客序号
        /// </summary>
        public string Id { get; set; }
        /// <summary>
        /// 航空公司
        /// </summary>
        public string Airline { get; set; }
        /// <summary>
        /// 签发国家
        /// </summary>
        public string IssuringCountry { get; set; }
        /// <summary>
        /// 名字
        /// </summary>
        public string FirstName { get; set; }
        /// <summary>
        /// 姓氏
        /// </summary>
        public string LastName { get; set; }
        /// <summary>
        /// 国籍
        /// </summary>
        public string Nation { get; set; }
        /// <summary>
        /// 护照号
        /// </summary>
        public string PassportNo { get; set; }
        /// <summary>
        /// 出生日期
        /// </summary>
        public DateTime Birthday { get; set; }
        /// <summary>
        /// 性别
        /// </summary>
        public string Sex { get; set; }
        /// <summary>
        /// 有效期
        /// </summary>
        public DateTime ExpiryDate { get; set; }
        public override string ToString()
        {
            return string.Format("航空公司={0}，签发国家={1}，护照号={2}，国籍={3}，出生日期={4}，性别={5}，有效期={6}，姓氏={7}，名字={8}，旅客序号={9}", this.Airline, this.IssuringCountry, this.PassportNo, this.Nation, this.Birthday.ToString("yyyy-MM-dd"), this.Sex, this.ExpiryDate.ToString("yyyy-MM-dd"), this.LastName, this.FirstName, this.Id);
        }
    }
}
